<template>
    <div class="bg">
      <van-nav-bar title="活动详情" fixed placeholder  right-text="按钮"  left-arrow @click-left="backHandler" >
        <template #right>
          <div class="edit_btn" @click="edit">
            <img src="@/assets/edit.png" alt="" class="img">
            <div>编辑</div>
          </div>
        </template>
      </van-nav-bar>
      <img src="@/assets/group/1.png" alt="" style="width: 100%;">
      <div class="base_info info">
        <div class="base_title">{{activity.title}}</div>
        <div class="base_subtitle">
            <div class="base_eye"><img src="@/assets/group/icon_eye.png" alt="">109</div>
            <div class="base_btn"><van-button>报名</van-button></div>
        </div>
      </div>
      <div class="detail_info info">
        <div class="line">
            <div class="detail_icon"><img src="@/assets/group/icon_time.png" alt=""></div>
            <div class="detail_value">
                活动时间:{{ activity.begin_time }}
            </div>
        </div>
        <div class="line">
            <div class="detail_icon"><img src="@/assets/group/icon_location.png" alt=""></div>
            <div class="detail_value">地址:河南省郑州市郑东新区商都路瀚海晴宇</div>
        </div>
        <div class="line">
            <div class="detail_icon"><img src="@/assets/group/icon_route.png" alt=""></div>
            <div class="detail_value">骑行线路:郑州市郑州东站—郑州市森林公园</div>
        </div>
      </div>
      <img src="@/assets/group/2.jpg" alt="" style="width: 100%;margin-top: 10px;">
      <div class="intro">
        <div class="intro_title">活动介绍</div>
        <div class="intro_content">
            {{ activity.intro }}
        </div>
      </div>
      <div class="btns">
        <van-button class="btn">发布</van-button>
      </div>
    </div>
</template>

<script>
export default {
  data () {
    return {
      activity: {
        title: '小伙伴们周末一起去骑车啦',
        begin_time: '2022.07.23 12:30:00',
        fee: '',
        intro: '成都天府绿道，开通于2022年4月，位于成都四环圈，全程总计约100km，是沿着成都绕城高速而修建的一条环城生态公园一级绿道。\n1、休闲路线\n锦城湖→青龙湖　约25km\n起点：锦城湖广场\n终点：GreenwayBike绿道单车(青龙湖店)\n途经：锦城湖公园、桂溪生态公园、中和湿地公园、三圣乡白鹭湾湿地公园、玉石湿地公园、青龙湖湿地公园\n骑行里程：约25km\n骑行时长：约3-4小时\n骑行难度：★★\n适合人群：全程平路+起伏路，基本没啥难度，成人小孩均可参加。',
        route_thumb: '',
        thumb: ''
      }
    }
  },
  mounted () {
  },
  methods: {
    backHandler () {
      this.$router.go(-1)
    },
    edit () {

    }
  }
}
</script>

<style lang="scss" scoped>
.bg{
  background: #F8F8F8;
  font-family:PingFang,PingFangSC-Semibold, PingFang SC;
  font-size: 20px;
  padding-bottom: 78px;
  .edit_btn {
    display: flex;
    font-size: 20px;
    font-weight: 600;
    color: #3F9C94;
    align-items: center;
    .img {
      width: 22px;
      height: 22px;
      margin-right: 3px;
    }
  }
  .btns {
    position: fixed;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 68px;
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    .btn {
      width: 100%;
      height: 54px;
      background: #0AD39F;
      box-shadow: 0px 2px 4px 0px rgba(10,211,159,0.3);
      border-radius: 27px;
      font-size: 24px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #FFFFFF;
    }
  }
}

</style>
